home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: howland.reston.ans.net!torn!utnut!utinfo!news
- From: Dave Goldstein <dave.goldstein@utoronto.ca>
- Subject: HELP!!!!!!!
- X-Nntp-Posting-Host: breath.dialin.utoronto.ca
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <3112CFDA.85@utoronto.ca>
- Sender: news@utcc.utoronto.ca (News)
- Content-Transfer-Encoding: 7bit
- Organization: UTCC Campus Access
- Mime-Version: 1.0
- Date: Sat, 3 Feb 1996 03:00:42 GMT
- X-Mailer: Mozilla 2.0b6a (Win95; I)
-
- I am a frustrated new C programmer, with a big headache:
- I've composed a linked list in a function, and I am passing the HEAD of
- the list into the function. Of course, when I pass this into the
- function, I have to dereference it twice (**head) since I pass it in as
- &head. Anyway, to make a long story short, when I try accessing the
- first item in the linked list (assuming there is one), I have tried
- accessing it as **head->next which C doesn't seem to like. WHY????!!
- It keeps giving me an error "Pointer to structure required on left side
- of -> or ->* in function ....". Isn't that what I'm doing??
-
- Please help, I'm beginning to feel suicidal!
- If you wish to mail me please write to:
-
- dave.goldstein@utoronto.ca
-
- I'll be forever in your debt! Thanks.
-